Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: refactor to separate K8s and image upgrade #2331

Closed
wants to merge 2 commits into from

Conversation

elchead
Copy link
Contributor

@elchead elchead commented Sep 12, 2023

Context

The new skip flag of #2310 allows to separately disable k8s and image upgrades.
This PR cleans up the code to reflect this separation of responsibilities.

Proposed change(s)

  • replace UpgradeNodeVersion with UpgradeK8sVersion and UpgradeImageVersion
  • this change effectively implies 2 separate updates of the NodeVersion CRD instead of one unified request as done before
  • the change allows to trigger a node image upgrade during a K8s upgrade. The reverse is still not possible however.

Related issue

Additional info

K8s upgrade
https://github.com/edgelesssys/constellation/actions/runs/6158829291/job/16712399691

Checklist

  • Update docs
  • Add labels (e.g., for changelog category)
  • Is PR title adequate for changelog?
  • Link to Milestone

@netlify
Copy link

netlify bot commented Sep 12, 2023

Deploy Preview for constellation-docs canceled.

Name Link
🔨 Latest commit f70110b
🔍 Latest deploy log https://app.netlify.com/sites/constellation-docs/deploys/65005482d66f010008f3e364

@github-actions
Copy link
Contributor

Coverage report

Package Old New Trend
cli/internal/cmd 55.10% 55.10% ↔️
cli/internal/kubecmd 58.00% 57.00% ↘️

@elchead elchead force-pushed the ref/cli/split-k8s-and-image-upgrade branch from b48f791 to f70110b Compare September 12, 2023 12:07
@elchead
Copy link
Contributor Author

elchead commented Sep 12, 2023

closing after discussion since we don't want to support the separate upgrade processes.

@elchead elchead closed this Sep 12, 2023
@daniel-weisse daniel-weisse deleted the ref/cli/split-k8s-and-image-upgrade branch May 24, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant